<script setup lang="ts">
//ts提升到script不需要return页面用到的数据
import { ref } from "vue";

defineProps<{ msg: string }>();

const count = ref(0);
</script>

<template>
  <button type="button" @click="count++">count is: {{ count }}</button>
  <el-button type="success">success</el-button>
</template>

<style scoped></style>
